# coding=utf-8
version='1.2.3.4567.a'
tupl = tuple(int(v) if v.isdigit() else v*2 for v in version.split('.'))
print tupl

